<form>
  <div style="margin:10px">
    <table id="discountEditor" class="gridlist" cellpadding="0" cellspacing="0">
      <thead>
        <tr>
          <th><{t}>折扣<{/t}></th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><{input size="4" type="text" name="discount" vtype="positive"}></td>
        </tr>
      </tbody>
    </table>
  </div>
  <div class="mainFoot">
    <div class="table-action">
      <{button label=$___b2c="确定"|t:'b2c' onclick="check(this.form);"}>
    </div>
  </div>
</form>
<script>
var check=function(el){
    var inp=$ES('input[vtype=positive]','discountEditor');
    if(!validate(el)) return;
    window.fbox.onSelect(inp);
    window.fbox.hide();
}
</script>
